package com.njtoyo.taxi.admin.mapper.master.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.njtoyo.taxi.admin.mapper.master.enums.RideCancellationResponsibility;
import com.njtoyo.taxi.admin.mapper.master.enums.RideCancellationTriggerBy;
import com.njtoyo.taxi.admin.mapper.master.enums.RideCancellationViolate;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author Dell
 * @since 2021-11-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "RideCancellation对象", description = "")
public class RideCancellation implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Long rideId;

    private Long userId;

    private Long driverId;

    @ApiModelProperty(value = "0.none；1.customer；2.driver；3:admin")
    private RideCancellationTriggerBy triggerBy;

    @ApiModelProperty(value = "0:none,1:customer,2:driver,3:admin")
    private RideCancellationResponsibility responsibility;

    @ApiModelProperty(value = "罚金")
    private BigDecimal penalty;

    @ApiModelProperty(value = "0:none,1:frequency,2:time,3:reached,4:outarea,5:neverinarea,6:waitingtooshort,7:appointcustomercancel,8:appointdrivercancel,9:appointCustomerLate,10:appointDriverLate")
    private RideCancellationViolate violate;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createdAt;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updatedAt;


}
